package com.choosefine.it.team.dao;

import java.util.List;
import java.util.Map;

import com.choosefine.it.team.model.TeamPublishFindWorkerInfo;
import com.github.pagehelper.Page;

public interface TeamPublishFindWorkerInfoMapper {
    int deleteByPrimaryKey(Integer id);

    int insertSelective(TeamPublishFindWorkerInfo record);
    
    /**
	 * 查询 单条 各班组发布的招工人的信息
	 * @auth update code liaozhanggen 2016-11-19 上午10:37:34
	 */
//    TeamPublishFindWorkerInfo selectByPrimaryKey(Integer id);

    /**
     * 更新某条招工信息
     * @param record
     * @return
     */
    int updateByPrimaryKeySelective(TeamPublishFindWorkerInfo record);

    /**
     * 根据登陆的用户的userid和用户所负责班组的id查询
     * 该班组招工信息发布列表
     * @param params
     * @return
     */
    Page<TeamPublishFindWorkerInfo> getTeamRecruitmentInfoListByUserIdAndTeamId(Map<String, Object> params);
    /**
     * 修改招工的发布状态
     */
    int updatePublishstatusByID(Map<String, Object> params);
    /**
     * 软删除某条招聘信息
     */
    int updateIsvalidStatus(Map<String, Object> params);
//    /**
//     * 统计招工发布的条数
//     */
//    int selectCountRecruitment(Map<String, Object> params);
    
    /**
	 * 根据 地区、工种、及发布的时间 、推荐、工价 查询各班组发布的招工人数据集
	 * @auth liaozhanggen 2016-11-19 上午10:35:53
	 */
	Page<TeamPublishFindWorkerInfo> queryTeamRecruitmentPageByCondition(Map<String, Object> params);
	
	Page<TeamPublishFindWorkerInfo> selectRecruitmentInfoByCondition(Map<String, Object> params);

	int updateRecruitmentVerifyStatus(Map<String, Object> params);
	
	List<TeamPublishFindWorkerInfo> select(Map<String, Object> params);
	
	int deleteTeamRecruitment(Map<String, Object> params);

    Page<TeamPublishFindWorkerInfo> randomSearch (String random);
	
}